<?php

class RSActivityRecord extends RSCharacterRecord
{
	public function __construct (& $values, $owner)
	{
		parent::__consturct($values, $owner, array(
			'rank' => 'Rank',
			'score' => 'Score'));
	}

	public function setRank ($rank)
	{
		$this->values['rank'] = (int) $rank;
	}

	public function getRank ()
	{
		return $this->values['rank'];
	}

	public function setScore ($score)
	{
		$this->values['score'] = (int) $score;
	}

	public function getScore ()
	{
		return $this->values['score'];
	}

	public function __toString ()
	{
		return $this->getScore();
	}
}